package com.db.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 区间
 * @author dzh
 * @since 2024/12/31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Range<T> {
    private T minimum;
    private T maximum;

    public static <T> Range<T> between(T minimum, T maximum) {
        return new Range<>(minimum, maximum);
    }
}
